def SelectSort(a):
    for i in range(0, len(a) - 1):
        min = i
        for j in range(i + 1, len(a)):
            if a[min] > a[j]:
                min = j
        if min != i:
            temp = a[i]
            a[i] = a[min]
            a[min] = temp
    print(a)


a = [4, 3, 99, 7, 9]
print(a)
SelectSort(a)

